package org.cicd.enums

/**
 * 定义操作系统类型
 */
enum OSType {
    Any('any'),
    Linux('Linux'),
    Mac_OS('Mac OS'),
    Mac_OS_X('Mac OS X'),
    Windows('Windows'),
    Others('others')


    private String code;


    OSType(String code) {
        this.code = code
    }

    public String getCode() {
        return code;
    }

    public static OSType valueOfName(String type) {
        return values().find {
            OSType it ->
                it.code == type
        }
    }

}